package com.woody.aggregate.infrastructure.contract.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.woody.common.api.enums.ContractType;
import lombok.Data;

/**
 * 合同记录表
 * @TableName tz_contract_record
 */
@TableName(value ="tz_contract_record")
@Data
public class ContractRecordEntity implements Serializable {

    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 模版id
     */
    @TableField(value = "template_id")
    private Long templateId;

    /**
     * 签署客户id
     */
    @TableField(value = "customer_id")
    private Long customerId;

    /**
     * 签署业务id
     */
    @TableField(value = "biz_id")
    private Long bizId;

    /**
     * 合同类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 合同名称
     */
    @TableField(value = "contract_name")
    private String contractName;

    /**
     * 合同版本
     */
    @TableField(value = "version")
    private Double version;

    /**
     * 电子签链接
     */
    @TableField(value = "contract_link")
    private String contractLink;

    /**
     * 合同地址
     */
    @TableField(value = "contract_url")
    private String contractUrl;

    /**
     * 合同状态
     */
    @TableField(value = "contract_state")
    private Integer contractState;

    /**
     * 合同开始时间
     */
    @TableField(value = "contract_start_time")
    private Date contractStartTime;

    /**
     * 合同结束时间
     */
    @TableField(value = "contract_end_time")
    private Date contractEndTime;

    /**
     * 
     */
    @TableField(value = "is_del")
    @TableLogic(value = "0", delval = "1")
    private Integer isDel;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "customer_type")
    private Integer customerType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}